import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/pages/Home.vue'
import Report from '@/views/pages/Report.vue'
import Query from '@/views/pages/Query.vue'
import Msg from '@/views/pages/Msg.vue'
import PurchaseIndex from '../views/purchase/index.vue'
import PurchaseDetail from '../views/purchase/detail.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/report',
      name: 'report',
      component: Report
    },
    {
      path: '/query',
      name: 'query',
      component: Query
    },
    {
      path: '/msg',
      name: 'msg',
      component: Msg
    },
    {
      path: '/purchase',
      name: 'purchase',
      component: PurchaseIndex
    },
    {
      path: '/purchase/detail',
      name: 'detail',
      component: PurchaseDetail
    }
  ]
})

export default router
